<html>
<head><meta charset="utf-8"><title>use `debug!` in rustc_codegen_llvm/src/context.rs · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/use.20.60debug!.60.20in.20rustc_codegen_llvm.2Fsrc.2Fcontext.2Ers.html">use `debug!` in rustc_codegen_llvm/src/context.rs</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="212640746"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/use%20%60debug%21%60%20in%20rustc_codegen_llvm/src/context.rs/near/212640746" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> sfzhu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/use.20.60debug!.60.20in.20rustc_codegen_llvm.2Fsrc.2Fcontext.2Ers.html#212640746">(Oct 08 2020 at 02:03)</a>:</h4>
<p>I got a compile error: "cannot find macro <code>debug</code> in this scope".</p>



<a name="212642291"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/use%20%60debug%21%60%20in%20rustc_codegen_llvm/src/context.rs/near/212642291" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/use.20.60debug!.60.20in.20rustc_codegen_llvm.2Fsrc.2Fcontext.2Ers.html#212642291">(Oct 08 2020 at 02:40)</a>:</h4>
<p>you probably need <code>use tracing::debug;</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>